package com.dong.jsr330;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * description
 *
 * @author Administrator 2021/09/03 16:23
 */
public class JSRTest {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("com.dong.jsr330");

        MyBean myBean = context.getBean(MyBean.class);
        System.out.println(myBean);

        ProviderBean providerBean = (ProviderBean) context.getBean("providerBean");
        System.out.println(providerBean);
    }

}
